import React from "react";
import { $pre } from "../../../../http/http";
import { Swiper } from "antd-mobile";
export default function Banner(props) {
  let { banner } = props;
  return (
    <Swiper autoplay style={{"--height":"3.8rem"}}>
      {/* 轮播图展示 */}
      {banner.map((item) => {
        return (
          <Swiper.Item key={item.id}>
            <img style={{width:"100%",height:"100%"}} src={$pre + item.img} alt="" />
          </Swiper.Item>
        );
      })}
    </Swiper>
  );
}
